﻿<%@ Page Language="C#" MasterPageFile="~/SanPham.Master" AutoEventWireup="true" CodeBehind="ListSanPham.aspx.cs" Inherits="GiaoDien.WebForm1" Title="Untitled Page" %>
<%@ Register Assembly="CollectionPager" Namespace="SiteUtils" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="NoiDungChinh" runat="server">
    <div id="content_top"></div>
        <div id="content_middle">
	        <h3>Danh sách các mặt hàng
	        
	        
            </h3>
	        
            <table style="width: 100%">
                <tr>
                    <td>
                        <asp:DataList ID="DataList1" runat="server" HorizontalAlign="Left" 
                RepeatDirection="Horizontal" RepeatLayout="Flow">
            <ItemTemplate>
                <div class="product_box margin_r20">

		            <a href="DetailSanPham.aspx?MaSP=<%# Eval("MaSanPham") %>"><img src="http://hc10-em11-ncc.somee.com/Webservice_NCC/images/<%# Eval("HinhAnh") %>" alt="Golden Bell" width="120" height="165" /></a>
                  <h3>
                      <asp:Label ID="Label2" runat="server" Text='<%# Eval("TenSanPham") %>' Height="30px"></asp:Label></h3>
                    
      	            <p class="price">Giá: <span>
                          <asp:Label ID="Label1" runat="server" Text='<%# Eval("GiaBanQuiDinh") %>'></asp:Label> 
                        VNĐ</span></p>
                <a href="DetailSanPham.aspx?MaSP=<%# Eval("MaSanPham") %>" class="detail">Chi tiết</a><a href="GioHang.aspx?action=add&MaSP=<%# Eval("MaSanPham") %>" class="addtocard">Mua</a>
                    
                  <div class="cleaner"></div>
                </div>
            </ItemTemplate>
            </asp:DataList></td>
                </tr>
                <tr>
                    <td>
                        <cc1:CollectionPager ID="CollectionPager1" runat="server" BackText="« Trước" FirstText="– Đầu" LabelText="Trang:" LastText="Cuối" NextText="Sau »" ResultsFormat="Kết quả từ {0}-{1} " ShowFirstLast="True" SliderSize="5" PagingMode="PostBack">
    </cc1:CollectionPager></td>
                </tr>
            </table>
	        
            
           
            
            
           
          <div class="cleaner"></div>
                    
        </div>
    <div id="content_bottom"></div>
</asp:Content>
